/**
 * 服务器巡检记录
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.serversPolling',['waterCommon']);
	
	module.service('$serversPollingService',function($waterDataCommon){
	/**
	 * 查询
	 * GUID--唯一标识
	 * start--开始时间
	 * end--结束时间
	 */
	this.getList=function(queryObject){
		var promise = $waterDataCommon.post("/ServerspollingController/getList",queryObject);
		return promise;
	}
	/**
	 * 新建服务器维护记录
	 */
	this.createModel = function(serversPolling){
		var promise = $waterDataCommon.createModel("SERVERSPOLLING",serversPolling);
		return promise;
	}
	/**
	 * 导出
	 */
	this.ToPdf=function(queryObject){
		var queryString = $waterDataCommon.jsonTostring(queryObject);
		window.open(getBasePath()+"/ServerspollingController/toPdf.do?"+queryString);
	}
	})
}(window, angular));